<?php

use yii\helpers\Html;
use yak\layui\widgets\form\ActiveForm;

/* @var $this yii\web\View */
/* @var $model yak\layui\models\Dictionary */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="dictionary-form form-block">

    <?php $form = ActiveForm::begin([ 'ajaxOptions' => $ajaxOptions ]); ?>

    <?= $form->field($model, 'sign')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'value')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'active')->radioList(\Yii::$app->params['yes.and.no']) ?>

    <div class="layui-form-item layui-input-block">
        <?= Html::submitButton('立即提交', [
            'class' => 'layui-btn', 'lay-submit' => true, 'lay-filter' => '_SUBMIT_FORM'
        ]) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
